/*
 * Copyright © 2017 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
*/

$hint_body_font_color: black;
$hint_bg_color: white;

@mixin GraphHint($spanWidth: 40%, $spanPadding: 0 0 0 0) {
  .rv-hint {
    background: $hint_bg_color;
    padding: 10px;
    box-shadow: 0px 10px 15px -5px rgba(0, 0, 0, 0.4);
    color: $hint_body_font_color;
    pointer-events: auto;
    height: max-content;
    width: max-content;

    .title {
      display: flex;
      justify-content: space-between;

      .icon-close {
        cursor: pointer;
      }
    }

    h4 {
      margin: 0;
      font-weight: bold;
      color: $hint_body_font_color;
    }
    .log-stats {
      margin: 5px 0;
      > div {
        > span {
          &:first-child {
            width: $spanWidth;
            padding: $spanPadding;
            display: inline-block;
          }
        }
      }
    }
  }
}
